package sicau.carManager.service;

        import sicau.carManager.entity.ViolationInformation;
        import com.baomidou.mybatisplus.extension.service.IService;

        import java.time.LocalDateTime;
        import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ITcz
 * @since 2021-02-05
 */
public interface ViolationInformationService extends IService<ViolationInformation> {

    Integer selectViolationNumByPlateNum(String plateNum, String campus);

    List<ViolationInformation> selectListByTime(LocalDateTime beginDay, LocalDateTime endDay, String campus);

    void cleanMoreThanOneYearViolationInformation();

    List<ViolationInformation> selectListByLicensePlate(String licensePlate, String campus);

    List<ViolationInformation> selectListThanThreeTimes(String campus);

    /**
     * 删除数据库中记录，以及删除本地图片
     * */
    void delete(ViolationInformation violationInformation);
}
